@import '@/styles/common/variables.scss';
@import './module.scss';
@import './phone_home.scss';
.home{ 
  //banner 模块
  padding-bottom: 64px;
  .banner_container{
    position: relative;
    .swiper-container.banner{
      background-color: #ffffff;
      height: 937px;
      text-align: center;
      .video-player{
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .swiper-slide{
        .el-image{
          width: 100%;
          height: 100%;
          cursor: pointer;
          .el-image__inner{
            object-fit: cover;
          }
        }  
        .title_con  {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          .title{
            position: relative;
            top: 100px;
            left: 200px;
            color: #ffffff;
            width: 100%;
            text-align: left;
            word-break: break-word;
            line-height: 1;
          }
          .subTitle{
            position: relative;
            top: 200px;
            left: 200px;
            width: 100%;
            color: #ffffff;
            text-align: left;
            word-break: break-word;
            line-height: 1;
            .more{
              position: absolute;
              margin-top: 40px;
            }
          }
        }
    
      }
      
      .el-carousel__arrow{
        width: 56px;
        height: 56px;
        background-color: rgba(102, 102, 102, 0.6);
        i{
          font-size: 24px;
        }
        &:hover{
          background-color: rgba(204, 204, 204, 0.6);
    
        }
      }
      .swiper-pagination {
    
        display: inline-block;
        position: relative;
        bottom: 40px;
        width: auto;
        .swiper-pagination-bullet {
          padding: 2px 0px;
          width: 24px;
          height: 0;
          display: inline-block;
          border-radius: 0;
          background-color: #ffffff;
          &.swiper-pagination-bullet-active{
            background-color: #363434;
          }
        }
      }
    
    }
    .swiper_banner_btn{
      font-size: 0;
      width: auto;
      text-align: center;
      position: absolute;
      text-align: center;
      -webkit-transition: .3s opacity;
      -o-transition: .3s opacity;
      transition: .3s opacity;
      -webkit-transform: translate3d(0,0,0);
      transform: translate3d(0,0,0);
      z-index: 10;
      bottom: 24px;
      width: 100%;
      >div{
        background-color: rgba(48, 48, 48, 0.3);
        padding: 8px 20px;
        width: auto;
        display: inline-block;
        border-radius: 20px;
        height: 40px;
         font-size: 0;
        .swiper-pagination {
          bottom: 0;
          position: relative;
          display: inline-block;
          top: -4px;
          font-size: 0;
          .swiper-pagination-bullet{
            height: 10px;
            width: 10px;
            border-radius: 50%;
            outline: none;
            margin-right: 26px;
            background-color: rgba(255, 255, 255, 0.6);
            &.swiper-pagination-bullet-active{
              height: 12px;
              width: 12px;
              background-color: #FFFFFF;
              
            }
            
          }
         
        }
        i{
          font-size: 24px;
          color: #FFFFFF;
          display: inline-block;
          cursor: pointer;
        }
      }
    }
    
    p.readMore{
      display: flex;
      margin-top: 40px;
      i{
        border-color: #ffffff;
        color: #ffffff;
        &::after{
          background-color: #ffffff;
        }
        &::before{
          color: #ffF;
        }
      }
    }
  }

  // 专题管理
  .swiper_special{
    background-color: #ffffff;
    >div{
      position: relative;
      width: $homeW;
      margin: 0px auto 0;
    }
    .special_title{
      text-align: center;
      color: #363434;
      font-size: 32px;
      padding: 32px 0 16px;
    }
    .swiper-container{
      width: 100%;
      
    }
    .specialItem{
      position: relative;
      cursor: pointer;
      border: 1px solid #F2F1F0;    
      .specialContent{
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding-left: 32px;
        z-index: 2;
        display: none;
        >p{
          color: #FFFFFF;
        }
        .special_first_title{
          font-size: 24px;
          min-height: 40px;
        }
        .special_second_title{
          font-size: 16px;
          margin-bottom: 24px;
          min-height: 32px;
        }
      }
      // 蒙层
      div.layer{
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background-color: rgba(54, 52, 52, 0.16);
        z-index: 1;
        display: none;
      }
      
      &:hover{
        .specialContent,
        .layer{
          display: block;
        }
        
      }
      .swiperSpecial_image{
        width: 100%;
        height: 0;
        padding-bottom: 75%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
      }
     
    }

    .el-carousel__arrow{
      background-color:#ffffff;
      width: 40px;
      height: 40px;
      &.el-carousel__arrow--left{ left: -56px; }
      &.el-carousel__arrow--right{ right: -56px;}
      i{
        font-size: 32px;
        color: #cdcdcd;
      }
      &:hover{
        i{
          color: #363434;
        }

      }
    }
    .carousel-button-prev{
      position: absolute;
      left: 0;
      top: 50%;
    }
    .carousel-button-next{
      position: absolute;
      right: 0;
      top: 50%;
    }
    .swiper_special_pagination{
      display: none;
    }

  }
  .product{
    background-color:#ffffff;
    // 产品标题
    .title{
      text-align: center;
      color: #363434;
      padding: 64px 0 16px; //设置自号后的高度是46 上下各减3
      font-size: 32px;
    }
    // 卡片产品展示
    .productContainer{
      width: $homeW;
      margin: 0 auto;
      >div.card_product{
        width: calc(50% - 16px);
        font-size: 0;
        padding: 40px ;
        background-color: #F9F9F9;
        margin-bottom: 32px;
        position: relative;
        vertical-align: middle;
        display: inline-block;
        &:nth-of-type(2n-1){
          margin-right: 16px;
        }
        &:nth-of-type(2n){
          margin-left: 16px;
        }
        .product_content{
          display: inline-block;
          width: calc(50% - 20px);
          padding-bottom: 50%;
          position: relative;
          margin-left: 20px;
          div{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            flex-direction: column;
            p.first_title{
              color: #363434;
              @include fontSize(32px);
              word-break: break-word;
              width: 100%;
            }
            p.subtitle{
              width: 320px;
              color: #7E7E7E;
              @include fontSize(18px);
              margin-top: 8px;
              word-break: break-word;
              width: 100%;
            }
     
          }
         
        }

        .product_image{
          width: calc(50% - 20px);
          padding-bottom: calc(50% - 20px);
          height: 0;
          z-index: 10;
          margin-right: 20px;
          cursor: pointer;
          display: inline-block;
          background-repeat: no-repeat;
          background-size: cover;
          @include transition( all,0.4s, ease-out);
          -webkit-transform: translateZ(0) scale(1, 1);
          -moz-transform: translateZ(0) scale(1, 1);
          -ms-transform: translateZ(0) scale(1, 1);
            -o-transform: translateZ(0) scale(1, 1);
              transform: translateZ(0) scale(1, 1);
          &:hover{
            -webkit-transform: translateZ(0) scale(1.12);
            -moz-transform: translateZ(0) scale(1.12);
            -ms-transform: translateZ(0) scale(1.12);
              -o-transform: translateZ(0) scale(1.12);
                transform: translateZ(0) scale(1.12);
          }
        }

        p.readMore{
          margin-top: 32px;
          justify-content: center;
          span{
            font-size: 24px;
            color: #363434;
          }
        }

      }
    }
    .listMore{
      text-align: center;
      font-size: 24px;
      color: #363434;
      text-align: center;
      cursor: pointer;
      padding: 0px 0px 60px;
      text-decoration: underline;
      font-weight: 400;
    }

  }

  .viewAll{
    font-size: 14px;
    color: #ffffff;
    border-radius: 20px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    padding: 0 15px;
    margin: 24px auto 56px;
    clear: both;
  }
  .socialMedia{
    background-color: #ffffff;
    padding-top: 56px;
    >div{
      width: $homeW;
      margin: 0px auto;
    }
    .socialMediaTitle{
      color: #363434;
      font-size: 32px;
      width: 370px;
      margin: 0px auto 8px;
      text-align: center;
    }
    .socialMediaContent{
      color: #7E7E7E;
      font-size: 16px;
      margin: 0px auto 16px;
      text-align: center;
    }
    .swiper-container{
      // margin: 0 73px;
      // width: calc(100% - 146px);
    }


    .socialMediaItem {

      .socialMediaImage{
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        margin-bottom: 16px;
      }
      .socialMediaAccount{
        text-align: center;
        color: #363434;
        font-size: 16px;
        margin-bottom: 16px;
        padding: 0 16px;
        >p{
          overflow: hidden;
          text-overflow:ellipsis;
           white-space: nowrap;
        }
      }
    }
    .swiper_socialmedia{
      position: relative;
      .el-carousel__arrow{
        // display: none;
        width: 40px;
        height: 40px;
        margin-top: - 20px;
        background-color: rgba(102, 102, 102, 0.6);
        i{
          font-size: 18px;
        }
        &:hover{
          background-color: rgba(204, 204, 204, 0.6);
    
        }
      }
    }
  }


}


.card_product{
  -webkit-transition: all .5s cubic-bezier(0.33,0,.67,1);
  -o-transition: all .5s cubic-bezier(0.33,0,.67,1);
  -moz-transition: all .5s cubic-bezier(0.33,0,.67,1);
  transition: all .5s cubic-bezier(0.33,0,.67,1);
  opacity: 0;
  .product_content,
  .product_image{
    -webkit-transform: translateY(150px);
      -moz-transform: translateY(150px);
      -ms-transform: translateY(150px);
      -o-transform: translateY(150px);
      transform: translateY(150px);
      opacity: 0;
  }
  .product_image{
    -webkit-transition: all .6s cubic-bezier(0.33,0,.67,1);
    -o-transition: all .6s cubic-bezier(0.33,0,.67,1) ;
    -moz-transition: all .6s cubic-bezier(0.33,0,.67,1) ;
    transition: all .6s cubic-bezier(0.33,0,.67,1) ;
  }
  .product_content{
    -webkit-transition: all .8s cubic-bezier(0.33,0,.67,1);
    -o-transition: all .8s cubic-bezier(0.33,0,.67,1);
    -moz-transition: all .8s cubic-bezier(0.33,0,.67,1);
    transition: all .8s cubic-bezier(0.33,0,.67,1);
  }
  &.visible{
    opacity: 1;
    .product_content,
    .product_image{
      opacity: 1;
      -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0px);
        -o-transform: translateY(0px);
        transform: translateY(0px);
    }
  }
}

